package com.atguigu.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Author:葛鑫
 * @CreateTime:2022/9/23 11:17:46
 * @Description:
 */

@Data
public class SkuEsModel { //common中
    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount;
    //是否有库存
    private boolean hasStock;
    private Long hotScore;
    private Long brandId;
    private Long catalogId;
    private String brandName;
    private String brandImg;
    private String catalogName;
    private List<Attr> attrs;

    @Data

//    为了让第三方工具类可以序列化,所以是public
    public static class Attr{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
